import * as types from '../../../store/types';
export default {
  name: 'DeleteCard',
  data() {
    return {};
  },
  methods: {
    deleteCard() {
      const chartId = this.currentId;
      const controlData = this.controls;
      delete controlData[chartId];
      this.$store.commit(types.UPDATE_CHART_CONFIG, {
        data: JSON.stringify(controlData),
        isAllUpdata: true,
      });
    },
  },
};
